package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 工作流测试(请假)
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class BdpWfDemo extends Model<BdpWfDemo> {

    private static final long serialVersionUID=1L;

    /**
     * 请假条主键
     */
    @TableId("DEMO_ID")
    private String demoId;

    /**
     * 请假人
     */
    @TableField("QJ_PERSON")
    private String qjPerson;

    /**
     * 请假人姓名
     */
    @TableField("QJ_PERSON_NAME")
    private String qjPersonName;

    /**
     * 天数
     */
    @TableField("QJ_LENGTH")
    private Double qjLength;

    /**
     * 请假事由
     */
    @TableField("QJ_CAUSE")
    private String qjCause;

    /**
     * 开始时间
     */
    @TableField("START_TIME")
    private LocalDateTime startTime;

    /**
     * 结束日期
     */
    @TableField("END_TIME")
    private LocalDateTime endTime;

    /**
     * 申请时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;


    public String getDemoId() {
        return demoId;
    }

    public BdpWfDemo setDemoId(String demoId) {
        this.demoId = demoId;
        return this;
    }

    public String getQjPerson() {
        return qjPerson;
    }

    public BdpWfDemo setQjPerson(String qjPerson) {
        this.qjPerson = qjPerson;
        return this;
    }

    public String getQjPersonName() {
        return qjPersonName;
    }

    public BdpWfDemo setQjPersonName(String qjPersonName) {
        this.qjPersonName = qjPersonName;
        return this;
    }

    public Double getQjLength() {
        return qjLength;
    }

    public BdpWfDemo setQjLength(Double qjLength) {
        this.qjLength = qjLength;
        return this;
    }

    public String getQjCause() {
        return qjCause;
    }

    public BdpWfDemo setQjCause(String qjCause) {
        this.qjCause = qjCause;
        return this;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public BdpWfDemo setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
        return this;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public BdpWfDemo setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public BdpWfDemo setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public BdpWfDemo setState(Integer state) {
        this.state = state;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.demoId;
    }

    @Override
    public String toString() {
        return "BdpWfDemo{" +
        "demoId=" + demoId +
        ", qjPerson=" + qjPerson +
        ", qjPersonName=" + qjPersonName +
        ", qjLength=" + qjLength +
        ", qjCause=" + qjCause +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", createTime=" + createTime +
        ", state=" + state +
        "}";
    }
}
